package com.usian.controller;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.usian.pojo.SysUserVo;
import com.usian.service.SysUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("sysuser")
public class SysUserController {
    @Autowired
    private SysUserService sysUserService;

    /**
     * 分页条件查询
     * @param sysUserVo
     * @return
     */
    @RequestMapping("findPage")
    public Page findPage(@RequestBody SysUserVo sysUserVo){
        return sysUserService.findPage(sysUserVo);
    }
}
